<?php

 /**
  * 根据客户端传递的 ID 删除对应的数据
  */
    require_once '../config.php';
    require_once '../functions.php';

 if (empty($_GET['id'])){
 	exit('确实必要参数');
 }

 $id = $_GET['id'];
 //  =>  '1 or 1 = 1'
 //  sql注入

 // delete from categories where id =7

 $rows = book_execute('delete from sentence where id in (' .$id. ');');

// if ($rows>0){}

 header('Location: /admin/option.php');